<?php
	require(dirname(__FILE__).'/configs.php');
	function __autoload($class)
	{
		if (file_exists(ROOT_DIRECTORY .'/controllers/'. $class . '.php'))
		{
			require_once ROOT_DIRECTORY .'/controllers/'. $class . '.php';
		}
		else if (file_exists(ROOT_DIRECTORY .'/models/'. $class . '.php'))
		{
			require_once ROOT_DIRECTORY .'/models/'. $class . '.php';
		}
		else if (file_exists(ROOT_DIRECTORY .'/views/'. $class . '.php'))
		{
			require_once ROOT_DIRECTORY .'/views/'. $class . '.php';
		}
	}
	/*
	* Include các lớp và các module dùng chung cho toàn website
	* .........
	*/
	include_once ROOT_CLASSES.'/application.php';
	include_once ROOT_CLASSES.'/Controller/Controller.php';
	include_once ROOT_CLASSES.'/View/view.php';
  
?>